package com.goktech.project.hmw.service.impl;

import com.goktech.project.hmw.dao.ISjDao;
import com.goktech.project.hmw.mapper.Sj;
import com.goktech.project.hmw.service.ISjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SjServiceImpl implements ISjService {

	@Autowired
	private ISjDao sjDao;
	/**
	 * 通过peojectId获取数据集合
	 *
	 * @param project_id
	 * @return
	 */
	@Override
	public List<Sj> listSjByProjectId(String project_id) {
		return sjDao.listSjByProjectId(project_id);
	}

	/**
	 * 通过idard获取数据集合
	 *
	 * @param idcard
	 * @return
	 */
	@Override
	public List<Sj> listSjByIdCard(String idcard) {
		return sjDao.listSjByIdCard(idcard);
	}

	/**
	 * 通过姓名获取数据集合
	 *
	 * @param name
	 * @return
	 */
	@Override
	public List<Sj> listSjByName(String name) {
		return sjDao.listSjByName(name);
	}

	/**
	 * 通过年月获取数据
	 *
	 * @param grant_year
	 * @return
	 */
	@Override
	public List<Sj> ListSjByYear(String grant_year) {
		return sjDao.ListSjByYear(grant_year);
	}
}
